<?php
	include "sql.php";
	if(is_array($_POST)&&count($_POST)>1){
		$parkingName = $errorCode = $errorMsg = $isExit = "";
		if($_SERVER["REQUEST_METHOD"] == "POST"){
			$parkingName = $_POST["parkingName"];
			$errorCode = $_POST["errorCode"];
			$errorMsg = $_POST["errorMsg"];
			$errorMsg = str_replace("'", "", $errorMsg);
			$isExit = $_POST["isExit"];
			if($parkingName!=null && $parkingName!=""){
				setError($parkingName,$errorCode,$errorMsg,$isExit);
			}
			return;
		}
	}	
?>